package org.streets.commons.util;

/**
 * 
 * @author dzb
 *
 */
public interface BeanAccessor  {
	
    /**
     * Set a single property of the bean.
     *
     * @param obj The object to be manipulated.
     * @param property Name of property to set.
     * @param value Value to set property to.
     * @returns Boolean indicating success.
     */
    boolean set(Object object, String property, Object value);

    /**
     * Get a single property of the bean.
     *
     * @param obj The object to be accessed.
     * @param property Name of property to get.
     * @returns Value of property. If property was not found, null is returned.
     */
    Object get(Object object, String property);
}
